package com.credithc.signature.job.utils;

import org.springframework.util.Base64Utils;

/**
 * @desc: <br/>
 * @author: Jingbo Hu<br/>
 * @time：2020年07⽉13⽇<br/>
 * @version：v1.0.0<br>
 */
public class Base64Util {

    /**
     * @param str
     * @return
     * @description 对字符串进行base64编码
     */
    public static String decode(String str) {
        byte[] bytes = Base64Utils.decodeFromString(str);
        return new String(bytes);
    }
}
